{#include file="top.php"#}
<script type="text/javascript" src="/js/ZeroClipboard.js"></script>
<script type="text/javascript">
    function select(){
        var s = $("#select_c");
        if(parseInt(s.attr('v'))==0){
            s.show();
            s.attr('v',1);
        }else{
            s.hide();
            s.attr('v',0);
        }
    }

    var clip = null;
    $(document).ready(function(){
        clip = new ZeroClipboard.Client();
        clip.setHandCursor( true );

        clip.addEventListener('load', function (client) {
        });

        clip.addEventListener('mouseOver', function (client) {
                clip.setText( $('#share_url').val() );
        });

        clip.addEventListener('complete', function (client, text) {
                alert('複製成功');
        });

        clip.glue( 'copy_bt');
    });
</script>
<div class="body">
    <div class="main fl">
        <div class="tips" style='{#if empty($msg)#}display:none;{#/if#}'>
            <strong class="ir warn_icon"><span>提示</span></strong>
            <label id='message'>{#$msg#}</label>
        </div>

        <div class="ibox clearfix">
            <figure class="imgbox">
                <a href="{#optimize_url('person', 'report','username='|cat:$member.username)#}"><img src="{#$member.photo_l#}"  width=77> </a>
            </figure>
            <h3 class="title">
                <a class="title" href="{#optimize_url('person', 'report','username='|cat:$member.username)#}">{#$member.username#}</a>
                <span class="myreport">我的報告：{#$member.reports_count#}</span>
                <a href="/member.php?action=MyReg" class="btn_b btn_b_editfile"><strong>編輯個人檔案</strong></a>
            </h3>
<!--            <p>年齡：{#$member.age_group#}</p>
            <p>膚質：{#$member.body_skin#}</p>
            {#if $member.fav_brand_top#}
            <p>最愛品牌：{#$member.fav_brand_top#}
                {#if $member.fav_brand#}
                <i class="tri down" onclick="$('.brand_all').slideToggle('fast');"></i>
                {#/if#}
            </p>
            {#/if#}
            <div class="brand_all" style="display:none">{#$member.fav_brand#}</div>

            {#if $member.reports_count#}<p>提交報告：{#$member.reports_count#}</p>{#/if#}
            {#if $memberData.facebook.id#}<p>已綁定facebook {#$memberData.email#}</p>{#/if#}-->

            <div class="point_record">
                <table class="point_record_tb">
                    <tr>
                        <td class="td1">
                            <a href="/member_center.php?action=points#show_point">詳細記錄</a>
                        </td>
                        <td class="td2">
                            <a href="{#optimize_url('help', 'show','page=4')#}" target="_blank">如何賺分？</a>
                        </td>
                        <td class="td3">
                            <span class="now">現有
                                iTrial分</span><span class="font_red">{#$member.points#}</span><a href="{#optimize_url('help', 'show','page=4')#}" target="_blank"><i class="icon point"></i></a>
                        </td>
                    </tr>
                </table>

            </div>
            <div class="btnsbox">
                <div class="flbox">
                    <a href="/member_center.php?action=blog_do&do=1" class="btn_b btn_b_edit">編寫blog</a>
                    {#if empty($member.member_type)#}<a href='/member.php?action=regTrial' class="btn_b btn_b_totrydaren"><strong>成為試用專員</strong></a>
                    {#else if $isexp neq 1#}<a href='/member.php?action=regExpert' class="btn_b btn_b_todaren"><strong>成為體驗達人</strong></a>{#/if#}
                </div>
                <div class="frbox">
                    <em class="icon {#if $member.member_type eq 5#}ycicon{#else if $member.member_type eq 1#}icon_master_g{#else#}icon_master_m{#/if#}">{#if $member.member_type eq 5#}尊業體驗團{#else if $member.member_type eq 1#}試用專員{#else#}正式會員{#/if#}</em>
                </div>
                {#if $member._status eq 1#}<p class="statu">審核中</p>{#/if#}
            </div>
        </div>
        <div class="point_intro">
            <p class="recom">推介朋友賺取iTrial分：<input type="text" class="ipt_text" id="share_url" readOnly="readOnly" value="{#$member.share_url#}"/><a class="point_copy" href="javascript::" id="copy_bt"><strong>複製</strong></a><a target="_blank" href="{#optimize_url('help', 'show','page=4')#}" class="icon question"></a></p>
            <p class="share">你可以透過任何方法，推介朋友申請成為試用專員或體驗達人，便可賺取 1 個 iTrial 分，每天上限為 5 分，即推介 5 位朋友。</p>
        </div>
        <!--試用邀請-->
        <div class="b_box tagb_box">
            <div class="slt slt_d" onclick="select()">
                <strong class="tri down"></strong>
            </div>
            <div class="sltbox sltbox_d">
                <div class="dt" onclick="select()">
                    {#$select.$t#}
                </div>
                <div id="select_c" v=0 class="dd" style="display:none">
                    {#foreach  from=$select item=v key=k#}
                    <p><a href="/member_center?action=invite&t={#$k#}">{#$v#}</a></p>
                    {#/foreach#}
                </div>
            </div>
            <div class="tab_b_box tab_b_box_l tab_b_box_m">
                <a class="curr" href="/member_center.php?action=invite">產品 / 活動</a>
                <a href="/member_center.php?action=report">產品報告</a>
                <a href="/member_center.php?action=attention">關注會員 </a>
                <a href="/member_center.php?action=points">iTrial分</a>
                <a href="/member_center.php?action=blog">Blog</a>
                <em class="line"></em>
            </div>
            <!--試用邀請-->
            <p class="n_title">我的產品 / 活動</p>
            <div class="ti_box">
                <div class="bd">
                    {#if $c==2#}<!--限制產品 或活動-->
                    {#foreach  from=$data.result item=v key=k#}
                    <div class="areabox {#if $v.member_type eq 5#}pro{#else#}try{#/if#}">
                        <h2 class="at">{#if $v.member_type eq 5#}尊業體驗團{#else#}試用專員{#/if#}</h2>
                        <div class="lbox">
							<div class="imgbox"><p class="img_p"><span><img src="{#$v._photo_url#}"></span></p></div>
                            <div class="ir {#if $v.event_type==1#}gf{#else#}act{#/if#}"><span>{#$v.cname#}</span></div>

                        </div>
                        <div class="rbox">
                            <div class="tbox">
                                <table class="tb_title" width="100%" cellpadding="0" border="0">
                                    <tbody><tr>
                                            <td class="tt" colspan="2">{#$v.brand_str#}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">{#$v.title#}</td>
                                        </tr>
                                        <tr></tr>
                                    </tbody>
                                </table>
                                <table width="100%" cellpadding="0" border="0">
                                    <tbody>
                                        {#if $v.show_endtime#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>接受限期</td>
                                            <td>{#date('Y年m月d日 H時i分s秒',strtotime($v.accept_endtime))#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.event_date)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>日期</td>
                                            <td>{#date('Y年m月d日',strtotime($v.event_date))#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.event_time)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>時間</td>
                                            <td>{#$v.event_time#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.place)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>地點</td>
                                            <td>{#$v.place#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.intro)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>簡介</td>
                                            <td>{#nl2br($v.intro)#}</td>
                                        </tr>
                                        {#/if#}
                                    </tbody>
                                </table>
                            </div>
                            <div class="infobox">
                                <span class="snumbox">
                                    <sup>名額</sup><span class="num">{#$v.quota#}</span>
                                    <sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>
                                    <sup>人氣</sup><span class="num">{#$v.click#}</span>
                                </span><a class="{#$v._css#}" href="{#$v._bturl#}"><span>{#$v._bt#}</span></a>

                                {#if empty($v._difTime.0)#}
                                <div class="text_over_info"><strong class="text_over"></strong></div>
                                {#else#}
                                <div class="info"><span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub></div>
                                {#/if#}

                            </div>
                            <table class="icon_statu">
                                <tr><td>{#$v._pstatus#}</td></tr>
                            </table>
                        </div>
                    </div>
                    {#/foreach#}
                    {#else if $c==1#}
                    {#foreach  from=$data.result item=v key=k#}
                    <div class="areabox {#if $v.member_type eq 5#}pro{#else#}try{#/if#}">
                        <h2 class="at">{#if $v.member_type eq 5#}尊業體驗團{#else#}試用專員{#/if#}</h2>
                        <div class="lbox">
                            <div class="imgbox"><p class="img_p"><span><img src="{#$v._photo_url#}"></span></p></div>
                        </div>
                        <div class="rbox">
                            <div class="tbox">
                                <table class="tb_title" width="100%" cellpadding="0" border="0">
                                    <tbody><tr>
                                            <td class="tt" colspan="2">{#$v.type_name#}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">{#$v.name#}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">{#$v.cname#}</td>
                                        </tr>
                                        <tr>
                                        </tr></tbody>
                                </table>
                                <table width="100%" cellpadding="0" border="0">
                                    <tbody>

                                        {#if $v.show_endtime#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>接受限期</td>
                                            <td>{#date('Y年m月d日 H時i分s秒',strtotime($v.accept_endtime))#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.price#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>價格</td>
                                            <td>${#$v.price#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.attribute_value1#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>實際容量</td>
                                            <td>{#$v.attribute_value1#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.capacity_trial#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>體驗規格</td>
                                            <td>{#$v.capacity_trial#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.body#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>編輯短評</td>
                                            <td>{#nl2br($v.body)#}</td>
                                        </tr>
                                        {#/if#}
                                    </tbody></table>
                            </div>
                            <div class="infobox">
                                <span class="snumbox">
                                    <sup>名額</sup><span class="num">{#$v.quota#}</span>
                                    <sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>
                                    <sup>人氣</sup><span class="num">{#$v.click#}</span>
                                </span><a class="{#$v._css#}" href="{#$v._bturl#}"><span>{#$v._bt#}</span></a>


                                {#if empty($v._difTime.0)#}
                                <div class="text_over_info"><strong class="text_over"></strong></div>
                                {#else#}
                                <div class="info"><span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub></div>
                                {#/if#}


                            </div>
                            <table class="icon_statu">
                                <tr><td>{#$v._pstatus#}</td></tr>
                            </table>
                        </div>

                    </div>
                    {#/foreach#}
                    {#else#}
                    {#foreach  from=$dataA.result item=v key=k#}
                    <div class="areabox {#if $v.member_type eq 5#}pro{#else#}try{#/if#}">
                        <h2 class="at">{#if $v.member_type eq 5#}尊業體驗團{#else#}試用專員{#/if#}</h2>
                        <div class="lbox">
                            <div class="imgbox"><p class="img_p"><span><img src="{#$v._photo_url#}"></span></p></div>

                        </div>
                        <div class="rbox">
                            <div class="tbox">
                                <table class="tb_title" width="100%" cellpadding="0" border="0">
                                    <tbody><tr>
                                            <td class="tt" colspan="2">{#$v.type_name#}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">{#$v.name#}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">{#$v.cname#}</td>
                                        </tr>
                                        <tr>
                                        </tr>
                                    </tbody>
                                </table>
                                <table width="100%" cellpadding="0" border="0">
                                    <tbody> {#if $v.show_endtime#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>接受限期</td>
                                            <td>{#date('Y年m月d日 H時i分s秒',strtotime($v.accept_endtime))#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.price#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>價格</td>
                                            <td>${#$v.price#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.attribute_value1#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>實際容量</td>
                                            <td>{#$v.attribute_value1#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.capacity_trial#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>體驗規格</td>
                                            <td>{#$v.capacity_trial#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if $v.body#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>編輯短評</td>
                                            <td>{#nl2br($v.body)#}</td>
                                        </tr>
                                        {#/if#}
                                    </tbody></table>
                            </div>
                            <div class="infobox">
                                <span class="snumbox">
                                    <sup>名額</sup><span class="num">{#$v.quota#}</span>
                                    <sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>
                                    <sup>人氣</sup><span class="num">{#$v.click#}</span>
                                </span><a class="{#$v._css#}" href="{#$v._bturl#}"><span>{#$v._bt#}</span></a>


                                {#if empty($v._difTime.0)#}
                                <div class="text_over_info"><strong class="text_over"></strong></div>
                                {#else#}
                                <div class="info"><span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub></div>
                                {#/if#}

                            </div>
                            <table class="icon_statu">
                                <tr><td>{#$v._pstatus#}</td></tr>
                            </table>
                        </div>
                    </div>
                    {#/foreach#}

                    {#foreach  from=$dataB.result item=v key=k#}
                    <div class="areabox {#if $v.member_type eq 5#}pro{#else#}try{#/if#}">
                        <h2 class="at">{#if $v.member_type eq 5#}尊業體驗團{#else#}試用專員{#/if#}</h2>
                        <div class="lbox">
                            <div class="imgbox"><p class="img_p"><span><img src="{#$v._photo_url#}"></span></p></div>
                            <div class="ir {#if $v.event_type==1#}gf{#else#}act{#/if#}"><span>{#$v.cname#}</span></div>

                        </div>
                        <div class="rbox">
                            <div class="tbox">
                                <table class="tb_title" width="100%" cellpadding="0" border="0">
                                    <tbody><tr>
                                            <td class="tt" colspan="2">{#$v.brand_str#}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">{#$v.title#}</td>
                                        </tr>
                                        <tr>
                                        </tr>
                                    </tbody>
                                </table>
                                <table width="100%" cellpadding="0" border="0">
                                    <tbody>{#if $v.show_endtime#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>接受限期</td>
                                            <td>{#date('Y年m月d日 H時i分s秒',strtotime($v.accept_endtime))#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.event_date)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>日期</td>
                                            <td>{#date('Y年m月d日',strtotime($v.event_date))#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.event_time)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>時間</td>
                                            <td>{#$v.event_time#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.place)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>地點</td>
                                            <td>{#$v.place#}</td>
                                        </tr>
                                        {#/if#}
                                        {#if !empty($v.intro)#}
                                        <tr class="sep">
                                            <td class="label"><span>：</span>簡介</td>
                                            <td>{#nl2br($v.intro)#}</td>
                                        </tr>
                                        {#/if#}
                                    </tbody></table>
                            </div>
                            <div class="infobox">
                                <span class="snumbox">
                                    <sup>名額</sup><span class="num">{#$v.quota#}</span>
                                    <sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>
                                    <sup>人氣</sup><span class="num">{#$v.click#}</span>
                                </span><a class="{#$v._css#}" href="{#$v._bturl#}"><span>{#$v._bt#}</span></a>

                                {#if empty($v._difTime.0)#}
                                <div class="text_over_info"><strong class="text_over"></strong></div>
                                {#else#}
                                <div class="info"><span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub></div>
                                {#/if#}

                            </div>
                            <table class="icon_statu">
                                <tr><td>{#$v._pstatus#}</td></tr>
                            </table>
                        </div>
                    </div>
                    {#/foreach#}
                    {#/if#}
                </div>
            </div>
        </div><!--tagb_box-->
    </div>
    <!-- main-->
    <div class="sidebar">
        {#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b3',0,'','sidebar_search')#}
        {#show_block('b9',0,'','sidebar_tutorial b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div><!--body-->

{#include file="footer.php"#}